package com.think.teaching.service;

import com.think.teaching.model.VideoLesson;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 视频章节 服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public interface VideoLessonService extends IService<VideoLesson> {
	
	VideoLesson AddVideoLesson(VideoLesson videoLesson);

	VideoLesson UpdateVideoLesson(VideoLesson videoLesson);

	VideoLesson GetVideoLesson(Integer id);
	
	List<VideoLesson> SearchVideoLessonsWithKey(String key,Boolean withoutBan);

	IPage<VideoLesson> ListVideoLessonWithTagAndType(Integer count, Integer page, Integer type, Integer tag,Boolean withoutBan);

	VideoLesson SetVideoLessonState(Integer id, Integer state);
}
